package org.millioncall.yueyoga.admin.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author lisj Mar 25, 2014 11:19:26 AM
 */
public class LiftClubAdvance implements java.io.Serializable {
	private static final long serialVersionUID = 6751457416548022694L;

	private Integer id;
	private String name;
	private Date startdate;
	private Date enddate;
	private Integer minage;
	private Integer maxage;
	private Integer creditlimits;
	private Integer participantslimits;
	private Integer participantsmin;
	private Double pricelimits;
	private String remarks;
	private Place place;
	private String placename;
	private Integer coachId0;
	private Integer coachId1;
	private String responsibleId;
	private String organizationId;
	private int status;
	private String co0name;
	private String co1name;
	private String username;
	private String placeId;
	private String yudname;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name == null?"":name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStartdate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		Date sd = null;
		String strSD = sdf.format(startdate);
		try {
			sd = sdf.parse(strSD);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return sd;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEnddate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		Date ed = null;
		String strED = sdf.format(enddate);
		try {
			ed = sdf.parse(strED);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return ed;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public Integer getMinage() {
		return minage;
	}

	public void setMinage(Integer minage) {
		this.minage = minage;
	}

	public Integer getMaxage() {
		return maxage;
	}

	public void setMaxage(Integer maxage) {
		this.maxage = maxage;
	}

	public Integer getCreditlimits() {
		return creditlimits;
	}

	public void setCreditlimits(Integer creditlimits) {
		this.creditlimits = creditlimits;
	}

	public Integer getParticipantslimits() {
		return participantslimits;
	}

	public void setParticipantslimits(Integer participantslimits) {
		this.participantslimits = participantslimits;
	}

	public Integer getParticipantsmin() {
		return participantsmin;
	}

	public void setParticipantsmin(Integer participantsmin) {
		this.participantsmin = participantsmin;
	}

	public Double getPricelimits() {
		return pricelimits;
	}

	public void setPricelimits(Double pricelimits) {
		this.pricelimits = pricelimits;
	}

	public String getRemarks() {
		return remarks == null?"":remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Place getPlace() {
		return place;
	}

	public void setPlace(Place place) {
		this.place = place;
	}

	public String getPlacename() {
		return placename == null?"":placename;
	}

	public void setPlacename(String placename) {
		this.placename = placename;
	}

	public Integer getCoachId0() {
		return coachId0;
	}

	public void setCoachId0(Integer coachId0) {
		this.coachId0 = coachId0;
	}

	public Integer getCoachId1() {
		return coachId1;
	}

	public void setCoachId1(Integer coachId1) {
		this.coachId1 = coachId1;
	}

	public String getResponsibleId() {
		return responsibleId == null?"":responsibleId;
	}

	public void setResponsibleId(String responsibleId) {
		this.responsibleId = responsibleId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOrganizationId() {
		return organizationId == null?"":organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public String getYudname() {
		return yudname == null ? "" : yudname;
	}

	public void setYudname(String yudname) {
		this.yudname = yudname;
	}

	public String getCo0name() {
		return co0name == null?"":co0name;
	}

	public void setCo0name(String co0name) {
		this.co0name = co0name;
	}

	public String getCo1name() {
		return co1name == null?"":co1name;
	}

	public void setCo1name(String co1name) {
		this.co1name = co1name;
	}

	public String getUsername() {
		return username == null?"":username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPlaceId() {
		return placeId == null?"":placeId;
	}

	public void setPlaceId(String placeId) {
		this.placeId = placeId;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}